* s~\t+$~~
[lhc/web/wiklou.git] / maintenance / changePassword.php
index 526feb7..9bb0bab 100644 (file)
 class ChangePassword {
        var $dbw;
        var $user, $password;
-       
+
        function ChangePassword( $user, $password ) {
                $this->user = User::newFromName( $user );
                $this->password = $password;
-               
+
                $this->dbw =& wfGetDB( DB_MASTER );
        }
 
        function main() {
                $fname = 'ChangePassword::main';
-               
+
                $this->dbw->update( 'user',
                        array(
                                'user_password' => wfEncryptPassword( $this->user->getID(), $this->password )